<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ include file="/views/commons/taglibs.jsp" %>
<c:choose>
<c:when test="${!empty dataList && fn:length(dataList) ne 0}">
	<h2>你问我答
				<span class="f12 c_f60">回答者获得“偷看”费用的80%</span></h2>
	<div class="panel panel-default ask">
		<div class="panel-body">
			<form id="question_choose_form" action="javascript:void(0)">
			<div class="filter-wrap">
				<dl class="clearfix invest-filter">
					<dt>问题关键字</dt>
					<dd class="clearfix">
						<div class="col-sm-4 mb20">
							<div class="input-group">
								<input type="text" name="questionDetail" value="${paramMap.questionDetail}" class="form-control" placeholder="请输入问题关键字">
								<span class="input-group-btn">
									<button class="btn btn-primary" type="button" onclick="queryQuestionList(1)">搜索</button>
								</span>
							</div>
						</div>
						<div class="col-sm-6 ">
							<a class="btn btn-white" href="<%=path%>/views/question/answer_user_list.jsp" target="_blank">找个人问问吧</a>
						</div>
					</dd>
				</dl>
				<div class="clear "></div>
			</div>
			</form>
			<c:forEach var="question" items="${dataList}" varStatus="index">
			<dl class="zxListT">
				
				<dt class="ctrlbox text-center vm">
				<c:if test="${question.questionStatus==3}">
					<a href="<%=path %>/uncheck/question/view/${question.questionId}" class="btn btn-info">3元偷看</a>
					<br>
					<p class="c_999">有 ${question.peekNum}人 偷看</p>
				</c:if>
				</dt>
				
				<dd class="content">
					<h4>
						<div class="pull-right c_999 f12"><fmt:formatDate value="${question.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></div>
						<span class="label label-success">Q</span>
						${question.questionDetail}
					</h4>
				</dd>

				<dd class="content">
					<h4 class="pull-left mr10">
						<span class="label label-success">A</span>
					</h4>
					<div class="faq-answer">
						<div class="author clearfix">
							<img src="http://7lrzbv.com2.z0.glb.qiniucdn.com/de00396d-70a4-43e3-8d19-33345504cd5f" alt="" class="header">
							<div class="name"><a href="<%=path%>/check/question/toInsert?answerUser=${question.answerUser}&answerUserName=${question.answerUserName}">${question.answerUserName}</a></div>
							<div class="f12 c_999">向他提问人数：${question.questionUserNum}</div>
						</div>
					</div>
				</dd>
			</dl>
			</c:forEach>
		</div>
	</div>
<p:pagination pageNo="${paramMap.pageNo}" pageCount="${paramMap.pageCount}" queryFunction="queryQuestionList"></p:pagination>
</c:when>
<c:otherwise>
	<h2>你问我答</h2>
	<div class="panel panel-default ask">
		<div class="panel-body">
			<form id="question_choose_form" action="javascript:void(0)">
			<div class="filter-wrap">
				<dl class="clearfix invest-filter">
					<dt>问题关键字</dt>
					<dd class="clearfix">
						<div class="col-sm-3 mb20">
							<div class="input-group">
								<input type="text" name="questionDetail" value="${paramMap.questionDetail}" class="form-control" placeholder="请输入问题关键字">
								<span class="input-group-btn">
									<button class="btn btn-primary" type="button" onclick="queryQuestionList(1)">搜索</button>
								</span>
							</div>
						</div>
						<div class="col-sm-6 ">
							<a class="btn btn-white" href="<%=path%>/views/question/answer_user_list.jsp" target="_blank">我要提问</a>
						</div>
					</dd>
				</dl>
				<div class="clear "></div>
			</div>
			</form>
			<dl class="zxListT">
				<dd class="content">
					暂无数据
				</dd>
			</dl>
		</div>
	</div>
</c:otherwise>
</c:choose>